#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
using namespace std;

class Solution {
public:
    vector<int> decode(vector<int>& encoded, int first) {
        vector<int> ans;
        ans.push_back(first);
        for(int i = 0;i<encoded.size();++i){
            
            ans.push_back((first)^(encoded[i]));
            first = ans.back();
            
        }
        return ans;
    }
};


int main(){
    // Solution S;
    // vector<int> encoded = {6,2,7,3};
    // vector<int> ans = S.decode(encoded,4);
    // return 0;
    
}